﻿using NAGFwk.UI;
namespace SilkeyERP.UI.Entities.BI {
    public partial class ucSectors : BaseModule
    {
        public ucSectors() {
            InitializeComponent();
            InitializeData();
        }
        void InitializeData() {
            IDataProvider dataProvider = DataSource.GetDataProvider();
            dailySalesBySector.SetSalesPerformanceProvider(new DailySalesBySector(dataProvider));
            unitSalesBySector.SetSalesPerformanceProvider(new UnitSalesBySector(dataProvider));
            ucSalesByRange.SetSalesByRangeProvider(new SectorSalesByRange(dataProvider));
        }
    }
}
